Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

207
Views
Html-to-react-components CLI : "Successfully generated 0 components" after adding data-components

My goal is simple : changing an index file to a React package for some integrations later on. Looking at different tools, the "easiest" one seems to be html-to-react-components, with its CLI commands.

After adding data-component="myDataComponent" to the element I want to convert, I typed the following command to create the React elements :

html2react <path-to-index.html>

But for some reason, this is the output : Successfully generated 0 components: Saved into "components" directory

After looking at the sample provided in the repo and swapping a few elements, it doesn't look like I did something wrong, appart from installing the module itself.

Ran both npm i html-to-react-components and npm i -g html-to-react-components but no constructive results.

Any Ideas on why does it not work the way it should ?

Edit : NPM Version : v6.4.11 Node version : v16.14.2

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!